package com.zdxf.service;

import com.zdxf.domain.ServiceDO;
import com.zdxf.domain.SiteXmlDO;
import com.zdxf.param.LogParam;
import com.zdxf.util.Result;
import org.dom4j.DocumentException;

import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.List;
import java.util.Map;

public interface ServiceManageService {
    /**
     * 获取服务列表（带状态）
     *
     * @return
     * @throws IOException
     */
    List<ServiceDO> getServiceList() throws IOException;

    /**
     * 获取服务列表（不带状态）
     *
     * @return
     * @throws IOException
     */
    List<ServiceDO> getServiceListNoStatus() throws IOException;

    ServiceDO startServiceById(int id) throws IOException;

    ServiceDO stopServiceById(int id) throws IOException;

    List<SiteXmlDO> getSiteList(int id) throws DocumentException;

    Result updateSite(Map params) throws Exception;
    Result getLogLine(LogParam logParam);
    Result getFile(LogParam logParam);
    Result getLogList(int id);

}
